package com.liu.blindBox.service;

import com.github.pagehelper.PageInfo;
import com.liu.blindBox.entity.qo.BlindBoxInfoQO;
import com.liu.blindBox.entity.vo.BlindBoxInfoVO;
import com.liu.blindBox.entity.vo.BlindBoxTypeInfoVO;
import com.liu.blindBox.entity.vo.SalesSituationVO;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface MerchantBlindBoxService {

    int insertProduct(BlindBoxInfoQO blindBoxInfo);

    void insertProductImage(MultipartFile image) throws IOException;

    int updateBlindBoxInfo(BlindBoxInfoQO blindBoxInfoQO);

    int deleteBlindBox(String userId, String blindBoxId);

    List<BlindBoxInfoVO> queryBlindBoxInfoByUserId(String userId,String keyword);

    PageInfo<SalesSituationVO> querySalesSituation(String userId, String keyword, String pageNum, String pageSize);

    List<BlindBoxTypeInfoVO> queryBlindBoxType();

    BlindBoxInfoQO queryBlindBoxInfo(String blindBoxId);
}
